<html>
<head>
<title>Simple XML HTTP request - jQuery</title>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript">
    var flickrUrl = '/proxy.jsp?url=http://api.flickr.com/services/feeds/photos_public.gne?format=xml&tags=dog';

    function send_request() {
        $.get(flickrUrl, {}, function(xmlDoc) {
            $("#pre").text(xmlDoc);
        }, 'XML');
    }
</script>
</head>
<body onload="send_request();" style="padding:40px">
<pre id="pre" style="width:500px;height:300px;border:1px solid blue;overflow:scroll;">&nbsp;</pre>
</body>
</html>
